﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage/Principal.Master" CodeBehind="Coleta.aspx.vb" Inherits="E_Lixo.Coleta" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            height: 18px;
        }
        .style2
        {
            height: 30px;
        }
        .style4
        {
            height: 30px;
            width: 214px;
        }
        .style12
        {
            height: 18px;
            width: 281px;
        }
        .style14
        {
            height: 18px;
            width: 214px;
        }
        .style17
        {
            height: 18px;
            width: 611px;
        }
        .style18
        {
            width: 611px;
        }
        .style19
        {
            height: 18px;
            width: 479px;
        }
        .style20
        {
            width: 479px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
        <asp:Panel ID="Panel" runat="server" Width="90%" CssClass="stiloPanel">
            Cadastro de Coleta:<br />&nbsp;<br /><asp:Label ID="LCodigo" 
                runat="server" Text="Código"></asp:Label>
            <br />
            <asp:TextBox ID="TCodigo" runat="server" Enabled="False" ReadOnly="True" 
                Width="71px"></asp:TextBox>
            <br />
            <br />
            <table style="width:100%;">
                <tr>
                    <td class="style12">
                        <asp:Label ID="LData" runat="server" 
                            Text="Data Coleta  &lt;font color='#FF0000'&gt;*&lt;/font&gt;"></asp:Label>
                        <asp:Label ID="Label1" runat="server" Enabled="False" ForeColor="#CCCCCC" 
                            Text="   Ex: 01/01/2001"></asp:Label>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="tdata" Display="Dynamic" ErrorMessage="Data inválida." 
                            ForeColor="Red" 
                            ValidationExpression="^((0[1-9]|[12]\d)\/(0[1-9]|1[0-2])|30\/(0[13-9]|1[0-2])|31\/(0[13578]|1[02]))\/\d{4}$" 
                            ValidationGroup="gravar"></asp:RegularExpressionValidator>
                    </td>
                    <td class="style17">
                        <asp:Label ID="LPessoa" runat="server" 
                            Text="Pessoa &lt;font color='#FF0000'&gt;*&lt;/font&gt;"></asp:Label>
                    </td>
                                      
                </tr>
                <tr>
                    <td class="style12">
                        <asp:TextBox ID="tdata" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvRG0" runat="server" 
                            ControlToValidate="tdata" Display="Dynamic" ErrorMessage="Campo obrigátorio" 
                            ForeColor="Red" SetFocusOnError="True" ValidationGroup="gravar"></asp:RequiredFieldValidator>
                    </td>
                    <td class="style18">
                        <asp:DropDownList ID="ddlPessoa" runat="server" AutoPostBack="True">
                        </asp:DropDownList>
                        <asp:ImageButton ID="ImageButton2" runat="server" Height="16px" 
                            ImageUrl="~/Imagens/refresh.png" Width="16px" />
                    </td>
                    <td>
                        &nbsp;</td>
                                 </tr>
                                 </table>
                                 <table>
                <tr>
                    <td class="style19">
                        <asp:Label ID="LEletronico" runat="server" Text="Eletrônico"></asp:Label>
                    </td>
                    <td class="style14">
                        <asp:Label ID="lqtde" runat="server" Text="Quantidade"></asp:Label>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" 
                            ControlToValidate="tqtde" Display="Dynamic" ErrorMessage="Apenas Números." 
                            ForeColor="Red" MaximumValue="999999" MinimumValue="1" SetFocusOnError="True" 
                            Type="Integer" ValidationGroup="qtde"></asp:RangeValidator>
                    </td>
                    <td class="style1">
                        <asp:Label ID="lunidade" runat="server" Text="Unidade"></asp:Label>
                    </td>
                   
                </tr>
                <tr>
                    <td class="style20">
                        <asp:DropDownList ID="ddlEletronico" runat="server">
                        </asp:DropDownList>
                        <asp:ImageButton ID="ImageButton1" runat="server" 
                            ImageUrl="~/Imagens/refresh.png" Height="16px" Width="19px" />
                    </td>
                    <td class="style4">
                        <asp:TextBox ID="tqtde" runat="server" Height="21px" MaxLength="6" Width="83px">1</asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvRG" runat="server" ControlToValidate="tqtde" 
                            ErrorMessage=" Campo obrigátorio" ForeColor="Red" 
                            SetFocusOnError="True" ValidationGroup="qtde" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                    <td class="style2">
                        <asp:DropDownList ID="ddlUnidade" runat="server">
                        </asp:DropDownList>
                        <asp:ImageButton ID="ImageButton3" runat="server" 
                            ImageUrl="~/Imagens/refresh.png" Height="16px" Width="16px" />
                    </td>
                    <td class="style2">
                        <asp:Button ID="bAdicionar" runat="server" Text="Adicionar" 
                            ValidationGroup="qtde" />
                    </td>
                </tr>
            </table>
            <asp:GridView ID="gvDados" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="ele_codigo" 
                ForeColor="#333333" GridLines="None" Height="16px" HorizontalAlign="Justify" 
                onrowdeleting="gvDados_RowDeleting" PageSize="8" style="margin-right: 0px" 
                Width="895px">
                <Columns>
                    <asp:BoundField DataField="ele_codigo" HeaderText="Código" />
                    <asp:BoundField DataField="ele_descricao" HeaderText="Descrição" />
                    <asp:BoundField DataField="cel_qtde" HeaderText="Quantidade" />
                    <asp:BoundField DataField="uni_descricao" HeaderText="Unidade" />
                    <asp:CommandField ButtonType="Image" 
                        DeleteImageUrl="~/Imagens/sc_icon_delete.gif" DeleteText="Excluir" 
                        HeaderText="Excluir" ShowDeleteButton="True" />
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
&nbsp;<br />
                      <div align="center">
                <asp:Label ID="LMSG" runat="server" Text="Erro" Visible="False" ForeColor="Red"></asp:Label>
                <br />
                <asp:Button ID="BGravar" runat="server" Text="Gravar" 
                    ValidationGroup="gravar" />
            </div>
        </asp:Panel>
    </div>
    </div>
</asp:Content>
